Skip to content

Add agentic refresh Phase 0 controls#110

Open
juliamuiruri4 wants to merge 2 commits into
mainfrom
juliamuiruri4-research-agentic-workflows
Open

Add agentic refresh Phase 0 controls#110
juliamuiruri4 wants to merge 2 commits into
mainfrom
juliamuiruri4-research-agentic-workflows

Conversation

@juliamuiruri4

@juliamuiruri4 juliamuiruri4 commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Summary

  • initialize and pin GitHub Agentic Workflows authoring support at gh-aw v0.77.5
  • add source/path allowlists, lifecycle/report/audience/asset/stack contracts, CODEOWNERS, refresh labels, ruleset templates, and deterministic validation
  • use the built-in, repository-scoped GITHUB_TOKEN with no stored App, PAT, OAuth, or private-key credential
  • constrain any future write automation to Azure-Samples/JavaScript-AI-Buildathon; external CodeTour repositories are permanent report-only evidence sources with manual maintainer handoff
  • require explicit required-check dispatch and explicit Copilot Code Review for every automated current head SHA because GITHUB_TOKEN-generated events generally do not trigger workflows

Safety boundary

This change does not add quest agents, discovery schedules, issue creation, content-writing workflows, stack execution, or merge automation. Buildathon remains report-only until every bounded token, dispatch, Copilot, ruleset, and approval capability is proven and writeAutomationAllowed is explicitly enabled. External repositories have no automated write-enablement path under this strategy.

Actions required after merge

  1. Confirm or create the human-only merge ruleset in repository settings; the user-bypass REST request returned HTTP 404.
  2. After this PR merges and both Phase 0 validation checks have successful runs on main, activate disabled main ruleset 19622585 and the human-only merge ruleset.
  3. Before enabling issue or content writes, run bounded trials for copilot-requests: write, AI-credit budget, Buildathon issue/refresh/** branch/PR safe outputs, explicit required-check dispatch, and explicit Copilot review for the current head SHA.

No GitHub App or credential secret needs to be created.

juliamuiruri4 and others added 2 commits July 23, 2026 17:38
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Introduces Phase 0 “agentic refresh” governance controls and validation tooling to keep automation report-only, pin gh-aw authoring support, and enforce deterministic guardrails (allowlists, contracts, ruleset templates, pinned actions) before any write automation is enabled.

Changes:

  • Add Phase 0 validation scripts for refresh configuration and local Markdown link integrity.
  • Add GitHub Actions workflows to validate content + agentic-workflow authoring inputs, and pin referenced actions by full commit SHA.
  • Add refresh governance artifacts (capabilities, quests allowlists, token policy, ruleset templates, labels, contracts, CODEOWNERS) and supporting repo configuration files.
Show a summary per file
File Description
scripts/validate-refresh-config.mjs Deterministic validator for Phase 0 refresh governance, policies, allowlists, and pinned-actions enforcement.
scripts/validate-content-links.mjs Repository-wide Markdown local-link and anchor validation for docs hygiene.
.vscode/settings.json Enables Copilot for Markdown in VS Code workspace settings.
.github/workflows/validate-content.yml Adds CI job to validate refresh config, link integrity, and MkDocs build.
.github/workflows/validate-agentic-workflows.yml Adds CI job to validate gh-aw compilation consistency and pinned actions.
.github/workflows/deploy.yml Pins deploy workflow actions to full commit SHAs.
.github/workflows/copilot-setup-steps.yml Adds Copilot Agent setup workflow that installs pinned gh-aw CLI.
.github/skills/agentic-workflows/SKILL.md Adds skill definition for routing gh-aw authoring/debug/upgrade requests.
.github/mcp.json Configures MCP server for gh-aw (gh aw mcp-server).
.github/dependabot.yml Adds monthly Dependabot updates for pip dependencies.
.github/CODEOWNERS Establishes code ownership for Phase 0 boundary files.
.github/agents/agentic-workflows.md Adds dispatcher agent description and operational guidance for gh-aw usage.
.github/agentic-refresh/tooling.json Pins gh-aw version and related setup action identifiers.
.github/agentic-refresh/stack-policy.md Defines allowed stack/branch structure and refresh operational constraints.
.github/agentic-refresh/rulesets/main.json Template ruleset for main protections (disabled by default).
.github/agentic-refresh/rulesets/human-merge.json Template ruleset for human-only merges (disabled by default).
.github/agentic-refresh/report-contract.md Defines required structure and evidentiary standards for weekly reports.
.github/agentic-refresh/README.md Documents Phase 0 controls and local validation commands.
.github/agentic-refresh/quests.json Defines quest allowlists, owned paths, governance limits, and branch patterns.
.github/agentic-refresh/lifecycle-policy.md Defines lifecycle evidence requirements for findings.
.github/agentic-refresh/labels.json Declares required refresh-state and quest labels.
.github/agentic-refresh/governance.md Documents Phase 0 boundaries, token model constraints, and activation sequence.
.github/agentic-refresh/github-token.json Machine-readable token permission model and forbidden operations list.
.github/agentic-refresh/capability-matrix.md Human-readable summary of capability gating and activation sequence.
.github/agentic-refresh/capabilities.json Current capability state with explicit blockers and audit evidence.
.github/agentic-refresh/audience-style-guide.md Defines audience assumptions and documentation style constraints.
.github/agentic-refresh/asset-policy.md Defines asset creation/revision constraints and required metadata.
.gitattributes Marks compiled workflow lockfiles as generated and forces merge=ours.

Review details

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 28/28 changed files
  • Comments generated: 3
  • Review effort level: Low

Comment on lines +30 to +43
function stripCodeFences(content) {
let insideFence = false;

return content
.split("\n")
.map((line) => {
if (/^\s*(```|~~~)/.test(line)) {
insideFence = !insideFence;
return "";
}
return insideFence ? "" : line;
})
.join("\n");
}
Comment on lines +459 to +463
check(
JSON.stringify(quest.ownedPaths) ===
JSON.stringify(expectedOwnedPaths.get(quest.id)),
`${prefix} owned paths must exactly match the reviewed path allowlist`,
);
Comment on lines +464 to +468
check(
JSON.stringify(quest.externalReports) ===
JSON.stringify(expectedExternalReports.get(quest.id)),
`${prefix} external reports must exactly match the reviewed report-only allowlist`,
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants